package com.derive.education_service.web.notice.service;

import com.derive.education_service.common.global.Paper;
import com.derive.education_service.common.global.ResponseMessage;
import com.derive.education_service.entity.Notice;
import com.derive.education_service.web.notice.bean.dto.NoticeAddDto;
import com.derive.education_service.web.notice.bean.dto.NoticeUpDto;
import com.derive.education_service.web.notice.bean.dto.QueryParam;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

/**
 * 通告信息
 */
@Component
public interface NoticeService {
    // 发布通告 -- 有上传文件就提交文件
    ResponseMessage addNotice(MultipartFile file, NoticeAddDto noticeAddDto);

    // 编辑通告
    ResponseMessage upNotice(MultipartFile file, NoticeUpDto noticeUpDto);

    // 删除通告 -- 有资源删除资源
    ResponseMessage delNotice(int noticeId);

    // 查询通告详情
    ResponseMessage getNoticeById(int noticeId);

    // 检索通告信息 -- 分页查询 -- 条件查询
    Paper<Notice> getNoticeList(QueryParam queryParam);
}
